package eventdispatcher
{
	import laya.events.EventDispatcher;
	
	public class JNEventDispatcher extends EventDispatcher
	{
		/**
		 *登录成功 
		 */		
		public static const LOGIN_SUCCESS:String="loginSuccess";
		/**
		 *退出登录
		 */		
		public static const LOGOUT_SUCCESS:String="logoutSuccess";
		/**
		 *个人信息 
		 */		
		public static const SHOW_PERSON_INFO:String="showPersonInfo";
		/**
		 *获取网络数据信息
		 */		
		public static const SEND_REQUEST_RESULT:String="SendRequestResult";
		private static var _ins:JNEventDispatcher;
		public function JNEventDispatcher(ins:Ins)
		{
			super();
			if(ins==null){
				alert("单例模式，请调用getInstance方法");
				return ;
			}
		}
		public static function getInstance():JNEventDispatcher
		{
			if(_ins==null){
				_ins=new JNEventDispatcher(new Ins());
			}
			return _ins;
		}
	}
}
class Ins{};